using Sirenix.OdinInspector;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Localizer : View
{
    string _language;

    [ShowInInspector]
    public string Language
    {
        get => _language;
        set
        {
            if(_language == value)
            {
                return;
            }
            _language = value;
            this.SetDirty(true);
        }
    }

    protected void OnEnable()
    {
        //base.OnEnable();
        LocalizerManager.Stuff.Register(this);
    }

    protected void OnDisable()
    {
        //base.OnDisable();
        LocalizerManager.Stuff.Unregiser(this);
    }
}
